import Layout from '@/layout/admin/index.vue'
import HOMELayout from '@/layout/home/index.vue'
export default [
    {
        path: '/',
        component: HOMELayout,
        redirect: "/index",
        hidden: true,
        children: [
            {
                path: '/index',
                hidden: true,
                name: 'home-index',
                component: () => import('@/views/home/index.vue')
            },
            {
                path: '/singer',
                hidden: true,
                name: 'home-singer',
                component: () => import('@/views/home/singer/index.vue')
            },
            {
                path: '/singer/:id',
                hidden: true,
                name: 'home-singer-id',
                component: () => import('@/views/home/singer/SingerInfo.vue')
            },
            {
                path: '/music',
                hidden: true,
                name: 'home-music',
                component: () => import('@/views/home/music/index.vue')
            },
            {
                path: '/music/:id',
                hidden: true,
                name: 'home-music-id',
                component: () => import('@/views/home/music/MusicInfo.vue')
            },
            {
                path: '/songList',
                hidden: true,
                name: 'home-songList',
                component: () => import('@/views/home/songList/index.vue')
            },
            {
                path: '/songList/:id',
                hidden: true,
                name: 'home-songList-id',
                component: () => import('@/views/home/songList/SongListInfo.vue')
            },
            {
                path: '/person',
                hidden: true,
                name: 'home-person',
                component: () => import('@/views/home/person/index.vue')
            },
        ]
    },
    // {
    //     path: "/404",
    //     component: () => import("@/views/index.vue"),
    //     hidden: true,
    // },
    // {
    //     path: '/',
    //     name: "index",
    //     hidden: true,
    //     redirect: "/admin",
    // },
    {
        path: '/admin',
        name: "Layout",
        redirect: "admin/home",
        component: Layout,
        children: [
            {
              path: "home",
              name: "HOME",
              meta: {title: "首页",icon:'Home'},
              component: () => import("@/views/admin/home/index.vue")
            },
            // {
            //     path: "404",
            //     component: () => import("@/views/index.vue"),
            //     hidden: true,
            // },
        ]
    },
    {
        path: '/admin/login',
        name: "adminLogin",
        hidden: true,
        component: () => import("@/views/admin/login/index.vue"),
    },
    // {
    //   path: "/user",
    //   component: Layout,
    //   hidden: true,
    //   redirect: "noredirect",
    //   children: [
    //     {
    //       path: "profile",
    //       component: () =>
    //           import("@/views/system/user/profile/index.vue"),
    //       name: "Profile",
    //       meta: { title: "个人中心", icon: "user" },
    //     },
    //   ],
    // },
]
